import React,{ Component } from 'react'
import ADoor from './ADoor'
import AWindow from './AWindow'

export default class House extends Component {
    state = {
      }

  render (){
      const { name, door } = this.props
      const temp = {a:'aa',b:'b'}

      const temps = {...temp,a:'a'}

      console.log(temps)
      return (<div>
                {name}

                

                {/* 这是一扇门 */}
                <ADoor {...door}/>
                {/* 这是一扇窗户 */}
                <AWindow/>
             </div>)
  }
}

